1 /************************************************************
2 * Copyright *
3 * Portions of this software are Copyright (c) 1993 - 2002, *
4 * Chad Z. Hower (Kudzu) and the Indy Pit Crew *
5 * - http://www.nevrona.com/Indy/ *
6 ************************************************************/
7 package org.indy.io;
8
9 import java.util.EventListener;
10
11 import org.indy.Status;
12
13
14 /***
15 * Listens for events from {@link IOHandler}s
16 *
17 * @author Owen Green
18 */
19 public interface IOHandlerListener extends EventListener {
20 /***
21 * Fired when <code>sender</code> has sucessfully connected
22 *
23 * @param sender The {@link IOHandler} that has connected
24 */
25 void onConnect(IOHandler sender);
26
27 /***
28 * Fired when <code>sender</code> has disconnected
29 *
30 * @param sender The {@link IOHandler} that has disconnected
31 */
32 void onDisconnect(IOHandler sender);
33
34 /***
35 *Fired when <code>sender</code>'s status has changed.
36 *
37 *@param sender The {@link IOHandler} that has undergone a status change.
38 *@param Status The new {@link org.indy.Status Status}.
39 */
40 void onStatus(IOHandler sender, Status status, Object[] args);
41 }
This page was automatically generated by Maven